package com.ruoyi.crm.sale.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 团队，针对客户或商机进行服务对象 crm_team
 * 
 * @author ruoyi
 * @date 2021-09-08
 */
public class CrmTeam extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 团队类型 1：客户  2：商机 */
    @Excel(name = "团队类型 1：客户  2：商机")
    private Long teamType;

    /** 业务表id */
    @Excel(name = "业务表id")
    private Long businessId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 是否负责人 1:是  0:否 */
    @Excel(name = "是否负责人 1:是  0:否")
    private Long isLeader;
    
    private String userName;//用户名称
    private String deptName;//部门名称

    public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTeamType(Long teamType) 
    {
        this.teamType = teamType;
    }

    public Long getTeamType() 
    {
        return teamType;
    }
    public void setBusinessId(Long businessId) 
    {
        this.businessId = businessId;
    }

    public Long getBusinessId() 
    {
        return businessId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setIsLeader(Long isLeader) 
    {
        this.isLeader = isLeader;
    }

    public Long getIsLeader() 
    {
        return isLeader;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teamType", getTeamType())
            .append("businessId", getBusinessId())
            .append("userId", getUserId())
            .append("isLeader", getIsLeader())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
